#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int myints[] = { 10,20,30,5,15 };
	vector<int> v(myints, myints + 5);
	sort_heap(myints, myints + 5);
	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;
	return 0;
}